package com.eascs.placeonfile.format;

import com.eascs.placeonfile.entity.O2oFileEntity;
import com.eascs.placeonfile.form.O2oFileForm;

public class O2oFileForMat {

	public static O2oFileEntity isnertF(O2oFileForm fileForm){
		O2oFileEntity entity = new O2oFileEntity();
		entity.setLoan_agreement(fileForm.getLoan_agreement());
		entity.setLoan_bank_card(fileForm.getLoan_bank_card());
		entity.setLoan_bank_stream(fileForm.getLoan_bank_stream());
		entity.setLoan_bank_stream_remark(fileForm.getLoan_bank_stream_remark());
		entity.setLoan_bc_sd_data(fileForm.getLoan_bc_sd_data());
		entity.setLoan_contract(fileForm.getLoan_contract());
		entity.setLoan_credit(fileForm.getLoan_credit());
		entity.setLoan_cz_sd_data(fileForm.getLoan_cz_sd_data());
		entity.setLoan_empower(fileForm.getLoan_empower());
		entity.setLoan_guarantee_contract(fileForm.getLoan_guarantee_contract());
		entity.setLoan_house(fileForm.getLoan_house());
		entity.setLoan_idcard(fileForm.getLoan_idcard());
		entity.setLoan_infinite_agreement(fileForm.getLoan_infinite_agreement());
		entity.setLoan_licence(fileForm.getLoan_licence());
		entity.setLoan_licence_remark(fileForm.getLoan_licence_remark());
		entity.setLoan_mortgage_contract(fileForm.getLoan_mortgage_contract());
		entity.setLoan_notice_book(fileForm.getLoan_notice_book());
		entity.setLoan_prompt_letter(fileForm.getLoan_prompt_letter());
		entity.setLoan_receipt(fileForm.getLoan_receipt());
		entity.setLoan_settle(fileForm.getLoan_settle());
		entity.setLoan_spouse_empower(fileForm.getLoan_spouse_empower());
		entity.setLoan_spouse_idcard(fileForm.getLoan_spouse_idcard());
		entity.setLoan_table(fileForm.getLoan_table());
		entity.setLoanapplyNo(fileForm.getLoanapplyNo());
		entity.setSend_date(fileForm.getSend_date());
		return entity;
	}
	
	
	public static O2oFileEntity updateToStart(O2oFileForm fileForm){
		O2oFileEntity entity = new O2oFileEntity();
		entity.setId(fileForm.getId());
		entity.setLoan_agreement(fileForm.getLoan_agreement());
		entity.setLoan_bank_card(fileForm.getLoan_bank_card());
		entity.setLoan_bank_stream(fileForm.getLoan_bank_stream());
		entity.setLoan_bank_stream_remark(fileForm.getLoan_bank_stream_remark());
		entity.setLoan_bc_sd_data(fileForm.getLoan_bc_sd_data());
		entity.setLoan_contract(fileForm.getLoan_contract());
		entity.setLoan_credit(fileForm.getLoan_credit());
		entity.setLoan_cz_sd_data(fileForm.getLoan_cz_sd_data());
		entity.setLoan_empower(fileForm.getLoan_empower());
		entity.setLoan_guarantee_contract(fileForm.getLoan_guarantee_contract());
		entity.setLoan_house(fileForm.getLoan_house());
		entity.setLoan_idcard(fileForm.getLoan_idcard());
		entity.setLoan_infinite_agreement(fileForm.getLoan_infinite_agreement());
		entity.setLoan_licence(fileForm.getLoan_licence());
		entity.setLoan_licence_remark(fileForm.getLoan_licence_remark());
		entity.setLoan_mortgage_contract(fileForm.getLoan_mortgage_contract());
		entity.setLoan_notice_book(fileForm.getLoan_notice_book());
		entity.setLoan_prompt_letter(fileForm.getLoan_prompt_letter());
		entity.setLoan_receipt(fileForm.getLoan_receipt());
		entity.setLoan_settle(fileForm.getLoan_settle());
		entity.setLoan_spouse_empower(fileForm.getLoan_spouse_empower());
		entity.setLoan_spouse_idcard(fileForm.getLoan_spouse_idcard());
		entity.setLoan_table(fileForm.getLoan_table());
		entity.setLoanapplyNo(fileForm.getLoanapplyNo());
		entity.setSend_date(fileForm.getSend_date());
		return entity;
	}
	
	public static O2oFileEntity updateF(O2oFileForm fileForm){
		O2oFileEntity entity = new O2oFileEntity();
		entity.setId(fileForm.getId());
		entity.setLoan_table(fileForm.getLoan_table());
		entity.setLoan_idcard(fileForm.getLoan_idcard());
		entity.setLoan_bank_card(fileForm.getLoan_bank_card());
		entity.setLoan_contract(fileForm.getLoan_contract());
		entity.setLoan_receipt(fileForm.getLoan_receipt());
		entity.setLoan_empower(fileForm.getLoan_empower());
		entity.setLoan_licence(fileForm.getLoan_licence());
		entity.setLoan_agreement(fileForm.getLoan_agreement());
		entity.setLoanapplyNo(fileForm.getLoanapplyNo());
		entity.setInput_date(fileForm.getInput_date());
		return entity;
	}
}
